Add configure option to reduce visual clutter at boot time
authorJulian Andres Klode <julian.klode@canonical.com>
Tue, 25 Jul 2023 13:35:52 +0000 (15:35 +0200)
committerJulian Andres Klode <jak@debian.org>
Sun, 2 Nov 2025 11:08:11 +0000 (12:08 +0100)
commite00c48197c98d0626d271ac913a88284a3026a59
tree5d6a1c03f2c3a557a14a3376d921483d4f283326
parentff55ae980fe670161f1c14200af2e383677a08b5
Add configure option to reduce visual clutter at boot time

If this option is enabled, then do all of the following:

Don't display introductory message about line editing unless we're
actually offering a shell prompt.  (This is believed to be a workaround
for a different bug.  We'll go with this for now, but will drop this in
favour of a better fix upstream if somebody figures out what that is.)

Don't clear the screen just before booting if we never drew the menu in
the first place.

Remove verbose messages printed before reading configuration.  In some
ways this is awkward because it makes debugging harder, but it's a
requirement for a smooth-looking boot process; we may be able to do
better in future.  Upstream doesn't want this, though.

Disable the cursor as well, for similar reasons of tidiness.

Suppress kernel/initrd progress messages, except in recovery mode.

Suppress "GRUB loading" message unless Shift is held down.  Upstream
doesn't want this, as it makes debugging harder.  Ubuntu wants it to
provide a cleaner boot experience.

Author: Will Thompson <will@willthompson.co.uk>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/386922
Bug-Ubuntu: https://bugs.launchpad.net/bugs/861048
Forwarded: (partial) http://lists.gnu.org/archive/html/grub-devel/2009-09/msg00056.html
Last-Update: 2021-09-24

Patch-Name: maybe-quiet.patch

Gbp-Pq: Name maybe-quiet.patch
config.h.in
configure.ac
grub-core/boot/i386/pc/boot.S
grub-core/boot/i386/pc/diskboot.S
grub-core/kern/main.c
grub-core/kern/rescue_reader.c
grub-core/normal/main.c
grub-core/normal/menu.c
util/grub.d/10_linux.in